import api from '../utils/api';

export async function queryList(param) {
  return api.post('/inventory/queryList', {
    data: JSON.stringify(param),
  });
}

export async function qryById(param) {
  return api.post('/inventory/qryById', {
    data: JSON.stringify(param),
  });
}

export async function create(param) {
  return api.post('/inventory/create', {
    data: JSON.stringify(param),
  });
}

export async function remove(param) {
  return api.post('/inventory/remove', {
    data: JSON.stringify(param),
  });
}

export async function goInventory(param) {
  return api.post('/inventory/goInventory', {
    data: JSON.stringify(param),
  });
}

export async function edit(param) {
  return api.post('/inventory/edit', {
    data: JSON.stringify(param),
  });
}

export async function onViewItem(param) {
  return api.post('/inventory/onViewItem', {
    data: JSON.stringify(param),
  });
}
export async function searchAsset(param) {
  return api.post('/inventory/quryAssetByInventory', {
    data: JSON.stringify(param),
  });
}

export async function onViewSheet(param) {
  return api.post('/inventory/qrySheetById', {
    data: JSON.stringify(param),
  });
}









